package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 合作商管理对象 tb_partner
 *
 * @author yuwei
 * @date 2024-08-31
 */
@ApiModel(description = "合作商管理对象")
public class Partner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合作商ID */
    @ApiModelProperty(value = "合作商ID", example = "1")
    private Long id;

    /** 合作商名称 */
    @Excel(name = "合作商名称")
    @ApiModelProperty(value = "合作商名称", example = "合作伙伴A")
    private String partnerName;

    /** 联系人 */
    @Excel(name = "联系人")
    @ApiModelProperty(value = "联系人", example = "张三")
    private String contactPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话", example = "13800138000")
    private String contactPhone;

    /** 分成比例 */
    @Excel(name = "分成比例")
    @ApiModelProperty(value = "分成比例", example = "50")
    private Long profitShare;

    /** 账号 */
    @ApiModelProperty(value = "账号", example = "partner123")
    private String account;

    /** 密码 */
    @ApiModelProperty(value = "密码", example = "password123")
    private String password;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPartnerName(String partnerName)
    {
        this.partnerName = partnerName;
    }

    public String getPartnerName()
    {
        return partnerName;
    }

    public void setContactPerson(String contactPerson)
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson()
    {
        return contactPerson;
    }

    public void setContactPhone(String contactPhone)
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone()
    {
        return contactPhone;
    }

    public void setProfitShare(Long profitShare)
    {
        this.profitShare = profitShare;
    }

    public Long getProfitShare()
    {
        return profitShare;
    }

    public void setAccount(String account)
    {
        this.account = account;
    }

    public String getAccount()
    {
        return account;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("partnerName", getPartnerName())
                .append("contactPerson", getContactPerson())
                .append("contactPhone", getContactPhone())
                .append("profitShare", getProfitShare())
                .append("account", getAccount())
                .append("password", getPassword())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}